
// import { testLogger} from "./testLogger.js";
import {testCompetitionHistoryFetcher} from './testComperirionHistoryFetcher.js'
import {UserRankFetcher} from "../src/Fetchers/userRankFetcher.js"
import {UserRatingFetcher} from "../src/Fetchers/userRatingFetcher.js"
import {SubmitRecordfetcher} from "../src/Fetchers/userSubmitRecordFetcher.js"
import {ContestInfoFetcherFactory }from "../src/Fetchers/contestInfoFetcherFactory.js"
import { iFetcher } from '../src/iFetcher.js'
import { ContestProblemsFetcher } from '../src/Fetchers/contestProblemsFetcher.js'

async function testUserRankFetcher() {
    let t=new UserRankFetcher()
    let s=await t.fetch({userName:"tourist",requestType:""})
    console.log(s)
}
async function testUserRatingFetcher() {
    let t=new UserRatingFetcher()
    let s=await t.fetch({userName:"tourist",requestType:""})
    console.log(s)
}
async function testSubmitRecordfetcher() {
    let t=new SubmitRecordfetcher()
    let s=await t.fetch({userName:"tourist",requestType:"",contestUrl:"https://atcoder.jp/contests/arc061"})
    console.log(s)
}
async function testContestInfo() {
    let a=ContestInfoFetcherFactory.getFetcher(".upcoming") as iFetcher
    let s=await a.fetch()
    console.log(s)
}
async function testContestProblesFetcher() {
    let a=new ContestProblemsFetcher()
    let s=await a.fetch({contestUrl:"https://atcoder.jp/contests/abc265",requestType:"contestProblems"})
    console.log(s)
}
//testContestInfo()
//testSubmitRecordfetcher()
 //testUserRatingFetcher()
 //testUserRankFetcher()
// testLogger()
// testCompetitionHistoryFetcher()
testContestProblesFetcher()

